package cn.edu.sjtu.se.dslab.service;

import cn.edu.sjtu.se.dslab.action.bean.PageBean;
import cn.edu.sjtu.se.dslab.component.aadl.AADLTemplate;
import cn.edu.sjtu.se.dslab.exception.DBException;

public interface IAADLTemplateService {

	public boolean addAADLTemplate(AADLTemplate aadlTemplate);

	public AADLTemplate getAADLTemplateById(long id);

	public AADLTemplate getAADLTemplateByUri(String uri);

	public boolean updateAADLTemplate(AADLTemplate aadlTemplate);
	
	public boolean deleteAADLTemplate(AADLTemplate aadlTemplate);


	public PageBean<AADLTemplate> getPageBean(int pageNo) throws DBException;

	public PageBean<AADLTemplate> getPageBeanByAttr(int pageNo, String name,
			String description,long groupid) throws DBException;
}
